{%- extends "apostrophe-modal:baseSlideable.html" -%}
{%- import "piecesMacros.html" as pieces with context -%}
{%- import "apostrophe-schemas:macros.html" as schemas -%}

{%- block modalClass -%}
  apos-pieces-editor {{ data.options.name | css }}-editor apos-ui-modal-no-sidebar apos-ui-modal-has-tabs apos-modal-slideable
{%- endblock -%}

{%- block controls -%}
  {{ module.editControls() }}
{%- endblock -%}

{%- block label -%}
  {{ __ns('apostrophe', 'Edit %s', (data.options.label | d(''))) }}
{%- endblock -%}

{%- block filters -%}
  {# ajax populates me #}
  <div class="apos-clearfix apos-modal-filters-inner" data-filters>
  </div>
{%- endblock -%}

{%- block body -%}
  <form class="apos-form" data-apos-form>
    {{ schemas.fields(data.schema) }}
  </form>
{%- endblock -%}

{%- block instructions -%}
  {{ __ns('apostrophe', 'Fill out the fields to edit an existing %s.', (data.options.label | d(''))) }}
{%- endblock -%}

{% block footerContainer %}
{% endblock %}
